package com.landinfo.service.mapper;

import com.landinfo.domain.*;
import com.landinfo.service.dto.PatrolRecordDTO;

import org.mapstruct.*;

/**
 * Mapper for the entity PatrolRecord and its DTO PatrolRecordDTO.
 */
@Mapper(componentModel = "spring", uses = {})
public interface PatrolRecordMapper extends EntityMapper <PatrolRecordDTO, PatrolRecord> {
    
    
    default PatrolRecord fromId(Long id) {
        if (id == null) {
            return null;
        }
        PatrolRecord patrolRecord = new PatrolRecord();
        patrolRecord.setId(id);
        return patrolRecord;
    }
}
